﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WebApiThrottle;

namespace HCQ2WebAPI_Logic.Model
{
    /// <summary>
    ///  自定义限流配置
    ///  PerSecond：每秒限制次数 5
    ///  PerMinute：每分钟限制次数 20
    ///  PerHour：每小时限制次数 200
    ///  PerDay：每天限制次数 1500
    ///  PerWeek：每周限制次数 3000
    /// </summary>
    public class MyEnableThrottlingAttribute: EnableThrottlingAttribute
    {
        /// <summary>
        ///  构造
        /// </summary>
        public MyEnableThrottlingAttribute()
        {
            PerSecond = 30;
            //PerMinute = 60;
            //PerHour = 200;
            //PerDay = 1500;
            //PerWeek = 3000;
        }
    }
}